import _ from 'lodash';

function component(props) {
  const element = document.createElement('div');

  // lodash 现在使用import引入
  element.innerHTML = _.join(['Hello', props.name], ' ');

  return element;
}

document.body.appendChild(component({ name: 'Webpack' }));